package com.example.forum.utils;

import com.example.forum.common.AppResult;
import com.example.forum.exception.ApplicationException;

/**
 * 功能描述:
 *
 * @author Lenovo
 * @date 2024/12/31
 */
public class StringVerifyUtil {
    public static void verify(String str){
        if(str == null || str.isEmpty()){
            throw new ApplicationException(AppResult.failed("输入不能为空"));
        }
    }
}
